package com.spsoft.vatoutinv.mapper;

import com.spsoft.system.model.vo.InvoiceItemVo;
import com.spsoft.vatoutinv.entity.vmsfulloutinvoice.VmsFullOutInvoiceItems;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 数电发票明细表 Mapper 接口
 * </p>
 *
 * @author chenxudong
 * @since 2023-11-30
 */
public interface VmsFullOutInvoiceItemsMapper extends BaseMapper<VmsFullOutInvoiceItems> {

    @Select("SELECT SEQ_VMS_FULL_OUTINVOICEITEMS.NEXTVAL FROM DUAL")
    Long getNextSequenceValue();

    /**
     * 根据发票主表id查询发票明细信息
     */
    List<InvoiceItemVo> queryInvoiceItem(@Param("foidid") Long foidid);
}
